package com.abigdreamer.im.server.ui.desktop;

import java.awt.event.MouseEvent;

import javax.swing.JInternalFrame;


public class DataBaseItem extends EIMDesktopItem{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public DataBaseItem() {
		super();
	}

	public DataBaseItem(EIMDesktop desktop,ItemConfig cofig) {
		super(desktop,cofig);
	}

	public void mouseClicked(MouseEvent e) {
		super.mouseClicked(e);
		   if(e.getClickCount()==2){
				JInternalFrame childFrame = new JInternalFrame("数据库信息", true);
				childFrame.setClosable(true);
				childFrame.setBounds(100, 100, 200, 200);
				this.getDesktop().add(childFrame, new Integer(10));
				childFrame.show();
		     }
	}

	public void mousePressed(MouseEvent e) {
		
	}

	public void mouseReleased(MouseEvent e) {
		
	}

}
